package com.briup.day31;

/**
 * @author ThinkBook
 */
public class Student extends Person {
    public String id;
    protected String name;
    private int age;
    String gender;

    public Student() {}

    private Student(String id) {
        System.out.println("in private Student(id) ...");
        this.id = id;
    }

    public Student(String id, String name, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public String getId() {
        return id;
    }

    private void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}